﻿<UserControl 
  x:Class="OpalisConsole.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
  xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
  xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

  <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">
    <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">
        <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
          <navigation:Frame.UriMapper>
            <uriMapper:UriMapper>
              <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
              <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
            </uriMapper:UriMapper>
          </navigation:Frame.UriMapper>
        </navigation:Frame>
    </Border>

    <Grid Style="{StaticResource NavigationOuterGridStyle}">
            <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">
                <Image Name="image1" Stretch="Uniform" Source="/OpalisConsole;component/Images/Fresh-Start-Win-7-Off-10-Logo1.jpg" HorizontalAlignment="Center" />
            </Grid>
            <Border x:Name="loginContainer" Style="{StaticResource LoginContainerStyle}" Height="25">
                <StackPanel Orientation="Horizontal">
                    <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" HorizontalAlignment="Left" Height="23"
                                     NavigateUri="/Home" TargetName="ContentFrame" Content="Fresh Start Home" Background="#FF0097FC" MinWidth="78" />
                    <HyperlinkButton x:Name="linkUserManagement" Style="{StaticResource LinkStyle}" HorizontalAlignment="Left" Height="23"
                                     NavigateUri="/Administration/PendingApproval" TargetName="ContentFrame" Content="User Management" Background="#FF0097FC" MinWidth="78" Visibility="Collapsed" />
                    <HyperlinkButton x:Name="linkImageVariableSettings" Style="{StaticResource LinkStyle}" HorizontalAlignment="Left" Height="23"
                                     NavigateUri="/Administration/OSDVariableSettings" TargetName="ContentFrame" Content="Image Variable Settings" Background="#FF0097FC" MinWidth="78" Visibility="Collapsed" />
                </StackPanel>
      </Border>
    </Grid>
  </Grid>
</UserControl>